package edu.fiu.cis.personalize.server.berkDB;

import java.util.List;

import com.sleepycat.bind.tuple.TupleBinding;
import com.sleepycat.je.Database;
import com.sleepycat.je.Transaction;

public interface BTransaction<K, V>
{
	V lookup(Transaction tx, K key,Database database);

	void save(K key, V value, Transaction tx, Database database);

	TupleBinding<K> getKeyBinding();

	TupleBinding<V> getValueBinding();
	
	boolean remove(K key, Transaction tx, Database database);

	void save(List<KeyValuePair<K, V>> entries, Transaction tx, Database database);
	
}
